package com.fm.base.database;

import com.fm.base.net.Server;

/**
 * @author leo.li
 */
public enum Database implements Server {
    LOCAL_TEST("127.0.0.1", 27017, "TEST"),
    LOCAL_GRAB("127.0.0.1", 27017, "GRAB");

    private String host;
    private Integer port;
    private String database;

    Database(String host, int port, String database) {
        this.host = host;
        this.port = port;
        this.database = database;
    }

    @Override
    public String getHost() {
        return host;
    }

    @Override
    public Integer getPort() {
        return port;
    }

    public String getDatabase() {
        return database;
    }
}
